// generate certain distribution for gps

static const double pi = 3.14159265359;

void dis0(){
  ifstream fi("../g4/config/plot.txt");
  ofstream f("../g4/config/plot2.txt");
  double x, y;
  while(fi >> x >> y){
    x *= 0.001;
    f << "/gps/hist/point " << pi-x << ' ' << y << endl;
  } // end for over i

  const int n = 20;
  const double d = (pi-x)/n;
  for(int i = 0; i < n; i++){
    x += d;
    f << "/gps/hist/point " << pi-x << " 0" << endl;
  } // end for over i
} // end main function
